<%-- 
    Document   : book_list
    Created on : 2020-5-10, 15:09:27
    Author     : lw
--%>

<%@page import="com.helloworld.entity.Book"%>
<%@page import="java.util.List"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        <style>
            .Item{
                width: 200px;
                height: 300px;
                
               
                margin-top: 10px;
                float: left;
                margin-left: 20px;
            }
            .Item img{
                width: 200px;
                height: 260px;
                
                
                max-width:100%;
                padding:4px;
                line-height:1.42857143;
                background-color:#fff;

                -webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out;
            }
            .book-p{
                font-size: 16px;
                text-align: center;

            }
        </style>
    </head>
    <body>
        <div>
            <img src="img/taideng.png" style="width: 100px; height: 100px; margin-left: 47%; margin-top: 150px;">
            <hr style="width: 1200px;">
            <%
            List<Book> list=(List<Book>)request.getAttribute("book_list");
            
            for(Book book:list){
            %>
            <a >
                <div style="width: 1200px; margin-left: 280px;">
                <div class="Item">
                <div>
                    <a  target="_blank" href="gbis?bookid=<%=book.getBookid()%>">
                    <img src="img/<%=book.getBookid()%>1.jpg" ></a>
                </div>
                <p class="book-p">
                   《<%=book.getBookname()%>》 
                </p>
                
                
            </div>    </div>        </a>
            <%
                }
            %>
        </div>
    </body>
</html>
